/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lanSimulation.tests;

import junit.framework.TestCase;
import lanSimulation.internals.Document;
import lanSimulation.internals.Packet;

/**
 *
 * @author farooq
 */
public class PacketTests extends TestCase {

    public void testBasicPacket() {
		Packet packet;

		packet = new Packet(new Document("c"), "a");
		assertEquals("message_", packet.message_.getText(), "c");
		assertEquals("destination_", packet.destination_, "a");
		assertEquals("origin_", packet.origin_, "");
		packet.origin_ = "o";
		assertEquals("origin_ (after setting)", packet.origin_, "o");
	}


}
